﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dynamic>" %>
 
<script src="@Url.Content("~/Scripts/MicrosoftAjax.js")" type="text/javascript"></script>
<div id="usercontent">
<%using (Ajax.BeginForm("Login", "User", null, new AjaxOptions() { UpdateTargetId = "usercontent", HttpMethod = "Post", OnBegin = "check" }))
  { %>
<table>
    <tr>
        <td>
            用户名：
        </td>
        <td>
            <input type="text" id="tbUser" name="tbUser" />
        </td>
    </tr>
    <tr>
        <td>
            密码：
        </td>
        <td>
            <input type="password" id="tbPassword" name="tbPassword" />
        </td>
    </tr>
    <tr>
        <td>
        </td>
        <td>
            <input type="submit" value="提交" style="border: 0px; width: 32px; height: 16px;" />
        </td>
    </tr>
</table>
<script type="text/javascript">
    function check() {
        return true;
    }
    </script>
<%} %>
</div>